import request from '@/utils/request'

// 查询VIEW列表
export function listMycreated(query) {
  return request({
    url: '/oa/mycreated/list',
    method: 'get',
    params: query
  })
}

// 查询VIEW详细
export function getMycreated(starttime) {
  return request({
    url: '/oa/mycreated/' + starttime,
    method: 'get'
  })
}

// 新增VIEW
export function addMycreated(data) {
  return request({
    url: '/oa/mycreated',
    method: 'post',
    data: data
  })
}

// 修改VIEW
export function updateMycreated(data) {
  return request({
    url: '/oa/mycreated',
    method: 'put',
    data: data
  })
}

// 删除VIEW
export function delMycreated(starttime) {
  return request({
    url: '/oa/mycreated/' + starttime,
    method: 'delete'
  })
}

// 导出VIEW
export function exportMycreated(query) {
  return request({
    url: '/oa/mycreated/export',
    method: 'get',
    params: query
  })
}